package pl.elka.pszt.controller.handler;

import pl.elka.pszt.controller.Controller;
import pl.elka.pszt.controller.event.AskEvent;
import pl.elka.pszt.controller.event.BaseEvent;

/**
 * 
 * @author Andrzej Makarewicz
 * 
 */
public class AskHandler extends BaseHandler{
	
	public AskHandler(Controller controller) {
		super(controller);
	}
	
	public void handleEvent(BaseEvent event) {
		AskEvent askEvent = (AskEvent) event;
		controller.getModel().askQuestion(askEvent.getQuestion());
	}
	
}
